#include "syscall.h"

extern "C" int write(int file, char *ptr, int len)
{
	int ret;
	__asm__ __volatile__(
		"int $0x90\t\n"
		"movl %%eax, %0"
		:"=m"(ret)
		:"a"(SYSCALL_WRITE), "b"(file), "c"(ptr), "d"(len)
	);
	return ret;
}

